<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能导航看板</title>
    <!--<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">-->   
    <style>
        body {
            margin: 0;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            background: linear-gradient(135deg, #6a11cb, #2575fc);
            font-family: 'Arial', sans-serif;
            overflow: auto; /* 允许页面滚动 */
        }
        h1 {
            color: white;
            font-size: 2.5rem;
            margin: 20px 0;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }
        .divider {
            width: 80%;
            max-width: 600px;
            height: 2px;
            background-color: rgba(255, 255, 255, 0.2);
            margin: 10px 0 30px;
        }
        .dashboard {
            display: grid;
            gap: 20px;
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
            padding-bottom: 100px; /* 为时间卡片留出空间 */
            grid-template-columns: 1fr; /* 默认单列排列 */
        }
        /* 大屏幕显示2列 */
        @media (min-width: 768px) {
            .dashboard {
                grid-template-columns: 1fr 1fr;
            }
        }
        .btn-custom {
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            border: 2px solid rgba(255, 255, 255, 0.2);
            padding: 25px 15px;
            text-align: center;
            font-size: 18px;
            border-radius: 15px;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 80px;
        }
        .btn-custom:hover {
            background-color: rgba(255, 255, 255, 0.2);
            transform: scale(1.05);
            border-color: rgba(255, 255, 255, 0.4);
        }

        /* 时间卡片样式 */
        .time-card {
            position: fixed;
            bottom: 20px;
            right: 20px;
            background-color: rgba(255, 255, 255, 0.1);
            color: white;
            padding: 15px 25px;
            border-radius: 10px;
            font-size: 1.2rem;
            backdrop-filter: blur(10px);
            border: 2px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 100;
        }
        .time-card:hover {
            transform: scale(1.1);
            background-color: rgba(255, 255, 255, 0.2);
        }

        /* 全屏时间样式 */
        .time-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }
        .time-overlay.active {
            display: flex;
        }
        .fullscreen-time {
            font-size: 8vw;
            color: white;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
            animation: pulse 1s infinite alternate;
        }
        @keyframes pulse {
            from { transform: scale(1); }
            to { transform: scale(1.05); }
        }

        /* 响应式调整 */
        @media (max-width: 768px) {
            h1 { font-size: 2rem; }
            .btn-custom {
                font-size: 16px;
                padding: 20px 10px;
                min-height: 70px;
            }
            .time-card {
                font-size: 1rem;
                padding: 10px 20px;
            }
        }
    </style>
</head>
<body>
    <h1>智能导航看板</h1>
    <div class="divider"></div> <!-- 分割线 -->
    
    <div class="dashboard" data-buttons="9">
        
            <a href="https://developer.aliyun.com/mirror/" target="_blank" class="btn-custom">
                阿里云镜像
            </a>
        
            <a href="https://www.csdn.net/" target="_blank" class="btn-custom">
                CSDN
            </a>
        
            <a href="https://juejin.cn" target="_blank" class="btn-custom">
                稀土掘金
            </a>
        
            <a href="https://gitee.com" target="_blank" class="btn-custom">
                Gitee
            </a>
        
        
            <a href="https://github.com" target="_blank" class="btn-custom">
                GitHub
            </a>
        
            <a href="https://www.bilibili.com" target="_blank" class="btn-custom">
                B站
            </a>
        
            <a href="https://www.zhihu.com" target="_blank" class="btn-custom">
                知乎
            </a>
            <a href="https://xy12306-01.github.io/page01.html" target="_blank" class="btn-custom">
                📚📚 刷新页面 📚📚
            </a>
            <a href="https://www.toutiao.com" target="_blank" class="btn-custom">
                今日头条
            </a>
            <a href="https://www.douyin.com" target="_blank" class="btn-custom">
                抖音
            </a>
            <a href="https://music.163.com" target="_blank" class="btn-custom">
                网易云音乐
            </a>
            <a href="https://chat.deepseek.com/" target="_blank" class="btn-custom">
                Deepseek
            </a>
            <a href="https://www.taobao.com" target="_blank" class="btn-custom">
                淘宝
            </a>
            <a href="https://www.jd.com" target="_blank" class="btn-custom">
                京东
            </a>
            
            
        
    </div>

    <!-- 时间卡片 -->
    <div class="time-card" id="timeCard">
        <span id="currentTime"></span>
    </div>

    <!-- 全屏时间遮罩层 -->
    <div class="time-overlay" id="timeOverlay">
        <div class="fullscreen-time" id="fullscreenTime"></div>
    </div>

    <script>
        // 获取时间显示元素
        const currentTimeElement = document.getElementById('currentTime');
        const fullscreenTimeElement = document.getElementById('fullscreenTime');

        // 更新时间的函数
        function updateTime() {
            const now = new Date();
            const timeString = now.toLocaleTimeString('zh-CN');
            // 更新时间显示
            [currentTimeElement, fullscreenTimeElement].forEach(element => {
                element.textContent = timeString;
            });
        }

        // 时间卡片交互
        const timeCard = document.getElementById('timeCard');
        const timeOverlay = document.getElementById('timeOverlay');

        timeCard.addEventListener('click', () => {
            timeOverlay.classList.add('active');
        });

        timeOverlay.addEventListener('click', () => {
            timeOverlay.classList.remove('active');
        });

        // 初始化
        setInterval(updateTime, 1000);
        updateTime();
    </script>
</body>
</html>